package cn.momoshenchi.vo;

import cn.momoshenchi.pojo.Article;
import cn.momoshenchi.pojo.Book;

import java.util.List;
import java.util.Objects;

/**
 * @version : 1.0
 * @author: momoshenchi
 * @date: 2021/6/9 - 14:53
 */
public class SearchVo
{
    private List<Book>bookList;
    private List<Article>articleList;

    @Override
    public boolean equals(Object o)
    {
        if (this == o) {return true;}
        if (o == null || getClass() != o.getClass()) {return false;}
        SearchVo searchVo = (SearchVo) o;
        return Objects.equals(bookList, searchVo.bookList) && Objects.equals(articleList, searchVo.articleList);
    }

    @Override
    public int hashCode()
    {
        return Objects.hash(bookList, articleList);
    }

    public List<Book> getBookList()
    {
        return bookList;
    }

    public void setBookList(List<Book> bookList)
    {
        this.bookList = bookList;
    }

    public List<Article> getArticleList()
    {
        return articleList;
    }

    public void setArticleList(List<Article> articleList)
    {
        this.articleList = articleList;
    }
}
